package com.wander.patterns.structure.decorator;

/**
 * @description:
 * @author: zhuyong
 * @create: 2019-09-04 12:08
 **/
public class SwingCar extends SuperCar {
    public SwingCar(ICar car) {
        super(car);
    }

    public void swing(){
        System.out.println("也能水上游");
    }

    @Override
    public void move() {
        super.move();
        swing();
    }
}

